<template>
  <div class="header">
    <mt-header fixed title="乐淘商城">
      <!-- <router-link to="/" slot="left">
        <mt-button icon="back">返回</mt-button>
      </router-link> -->
      <a href="javascript:history.back()" slot="left" >返回</a>
      <mt-button  slot="right" @click="goToSearch">搜索</mt-button>
    </mt-header>
  </div>
</template>

<script>
export default {
  methods: {
    goToSearch () {
      this.$router.push({name: 'Search'})
    }
  }
}
</script>

<style lang="scss" scoped>
  .header {
    .mint-header.is-fixed {
      z-index: 2;
    }
  }
</style>
